.class Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager$MyHandler;
.super Landroid/os/Handler;


# instance fields
.field private ref:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager$MyHandler;->ref:Ljava/lang/ref/WeakReference;

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager$MyHandler;->ref:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 3

    iget-object v0, p0, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager$MyHandler;->ref:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :goto_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_0
    #getter for: Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->forcePause:Z
    invoke-static {v0}, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->access$0(Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;)Z

    move-result v1

    if-nez v1, :cond_1

    invoke-virtual {v0}, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->scrollOnce()V

    :cond_1
    #getter for: Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->interval:J
    invoke-static {v0}, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->access$1(Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;)J

    move-result-wide v1

    #calls: Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->sendScrollMessage(J)V
    invoke-static {v0, v1, v2}, Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;->access$2(Lcn/trinea/android/view/autoscrollviewpager/AutoScrollViewPager;J)V

    goto :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method
